<template>
<div class="container">
  <div class="tab-box">
    <router-link replace :to="'/radio/recommendation'">
      <div class="tab-item" >推荐</div>
    </router-link>
    <router-link replace :to="'/blogs'">
      <div class="tab-item">博客</div>
    </router-link>
  </div>
  <router-view></router-view>
  <tabbar currentKey="radio"/>
</div>
</template>
<script>
import tabbar from '@/components/tabbar'

export default {
  name: 'radio',
  components: {
    tabbar
  },
  computed:{
    getuser(){
      return localStorage.getItem('user')
    }  
  },
  methods:{
  }
}
</script>
<style scoped>
.tab-box{
  position: fixed;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.tab-item{
  margin-top: 10px;
  font-size: 20px;
  height: 30px;
  flex: 1;
  
  line-height: 30px;
  color: #707070;
  margin-left: 20px;
  text-align: center;
}
.router-link-active .tab-item{
  font-size: 22px;
  font-weight: 700;
}
.router-link-active .tab-item::after{
  content: '';
  display: block;
  border-bottom:solid #ff7d15 ;
}
span{
  top: 15px;
  position: absolute;
  right: 20px;
  font-weight: 500;
  color:#707070;
}
</style>